/* identifyButton chrli*/
define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'esri/InfoTemplate',
    'dojo/topic'
], function (declare, lang, InfoTemplate, topic) {

    return declare(null, {
        map: null,

        startup: function () {
            document.getElementById('refreshButton').addEventListener("click", lang.hitch(this, '_clear'));
        },

        _clear: function () {
            topic.publish('find/clear');
            topic.publish('analyze/clear');
            topic.publish('address/clear');
            topic.publish('measure/clear');

            dojo.addClass(document.getElementById('findDiv'), 'displayNone');
            dojo.addClass(document.getElementById('analyzeDiv'), 'displayNone');
            dojo.addClass(document.getElementById('addressDiv'), 'displayNone');
            dojo.addClass(document.getElementById('measureDiv'), 'displayNone');
        }

    });
});